from .config_loader import get_global_config

class ServerConfig:
    
    def __init__(self):
        self.config = get_global_config()["server"]

    @property
    def app_name(self):
        return self.config.get("app_name")

    @property
    def host(self):
        return self.config.get("host")
    
    @property
    def port(self):
        return self.config.get("port")
    
    @property
    def workers(self):
        return self.config.get("workers")
    
    @property
    def log_level(self):
        return self.config.get("log_level")
